#include <stdio.h>
int main(){
    int y,m,d;
    scanf("%d/%d/%d",&y,&m,&d);
    if(m<10) printf("No. It's not too late.");
    else if(m==10&&d<29) printf("No. It's not too late.");
    else printf("QAQ");
    return 0;
}
